//
//  TransferHeaderView.swift
//  d11
//
//  Created by peale on 2018/7/28.
//  Copyright © 2018年 Tech_001. All rights reserved.
//

import UIKit

class TransferHeaderView: UITableViewHeaderFooterView {
    var titleLabel : UILabel?
    
    override init(reuseIdentifier: String?) {
        super.init(reuseIdentifier:reuseIdentifier)
        self.contentView.backgroundColor = UIColor.white
        self.titleLabel = UILabel.init()
        self.titleLabel?.textColor = HexRGBAlpha(0x333333, 1)
        self.titleLabel?.font = UIFont.systemFont(ofSize: 15)
        self.titleLabel?.textAlignment = NSTextAlignment.left
        self.contentView.addSubview(self.titleLabel!)
        
        self.titleLabel?.snp.makeConstraints{(make) in
            make.left.equalTo(12)
            make.width.equalToSuperview()
            make.height.equalTo(30)
        }
    }
    
    required init?(coder aDecoder: NSCoder) {
         super.init(coder: aDecoder)
    }
    
    func setData(title:String) -> Void {
        self.titleLabel?.text = title+"年"
    }
}
